package cn.congzhou.crm.query;

import cn.congzhou.crm.utils.DateUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter@Setter
public class ChartQueryObject {

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    private String groupBy="e.name";

    public Date getEndDate(){
        return DateUtil.getEndDate(endDate);
    }




}
